<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/Userfriends/userfriends" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>
<body>
  <div class="page">
    <div class="page-hd">
      <h1>足迹管理</h1>
    </div>
    <div class="datas">
      <div class="filterbar">
        <form id="search" action="{:URL('admin/UserFriends/userfriends')}" method="get">
          <label for="is_active">邀请状态</label>
          <select name="i_status" id="i_status">
            <option value="" <eq name="i_status" value="">selected</eq>>所有</option>
            <option value="1" <eq name="i_status" value="1">selected</eq>>邀请中</option>
            <option value="2" <eq name="i_status" value="2">selected</eq>>已成为好友</option>
            <option value="3" <eq name="i_status" value="3">selected</eq>>邀请被退回</option>
            <option value="4" <eq name="i_status" value="4">selected</eq>>解除好友</option>
          </select>
          <label for="">用户ID</label>
          <input type="text" name="userid" id="userid" value="{$userid}" class="input-text">
           <label for="">好友ID</label>
          <input type="jid" name="jid" id="jid" value="{$jid}" class="input-text">
          <button type="button" class="btn-search" id="J_search" title="{$Think.lang.search}">
            <i class="icon-search"></i>
          </button>
          
        </form>
      </div>

      <div class="datas-bd">
        <table class="table">
           <thead>
            <tr>
              <th style="">用户ID</th>
              <th style="">用户姓名</th>
              <th style="">好友ID</th>
              <th style="">好友姓名</th>
              <th style="">邮箱</th>
              <th style="">电话</th>
              <th style="">关系</th>
              <th style="">状态</th>
            </tr>
          </thead>
          <tbody>
            <volist name="data" id="vo">
              <tr >
                <td>{$vo['userid']}</td>
                <td>{$vo['username']}</td>
                <td>{$vo['jid']}</td>
                <td>{$vo['uname']}</td>
                <td>{$vo['email']}</a> </td>
                <td>{$vo['phone']}</a> </td>
                <td>
                  <eq name="vo['i_status']" value="1">邀请中</eq>
                  <eq name="vo['i_status']" value="2">已成为好友</eq>
                  <eq name="vo['i_status']" value="3">邀请被退回</eq>
                  <eq name="vo['i_status']" value="4">解除好友</eq>
                </td>
                <td>
                  <eq name="vo['is_active']" value="1">{$Think.lang.active}
                    <else />{$Think.lang.notActive}</eq>
                </td>
              </tr>
            </volist>
          </tbody>
        </table>
      </div>
      <div class="datas-ft">
         <div class="actions">
         <php>if(!empty($_GET['userid'])){</php> <a href="<php>echo session('backurl');</php>" class="btn">返回</a><php>}</php>
        </div>
        <div class="pager">{$page}</div>
      </div>
    </div>

  </div>
  </div>
</body>

</html>
